﻿using WolfCarol.SFU;
using SFML.Graphics;

public class TestScene
{
    public TestScene()
    {
        Window window = new Window(1920, 1080, "Test");
        window.SetFrameRateLimit(60);

        window.AddEntity(new Test());

        Texture tex = new Texture("lena.png");

        for (int i = 0; i < 100; i++)
        {
            window.AddEntity(new SpriteRenderer(tex));
        }

        Button button = new Button(tex);
        button.AddListener(() => Console.WriteLine("click!"));
        button.Transform.SetOriginAndPosition(tex.Size, Layout.Center);

        window.AddEntity(button);

        window.Run();
    }
}